package com.itheima.date8;

import java.time.LocalDateTime;

/*
jdk8时间日期的获取方法
 */
public class Demo03 {

    public static void main(String[] args) {
        LocalDateTime time = LocalDateTime.of(2011, 11, 11, 11, 11, 11);
        System.out.println(time.getYear());
        System.out.println(time.getMonth());
        System.out.println(time.getMonthValue());
        System.out.println(time.getDayOfMonth());
        System.out.println(time.getDayOfWeek());
        System.out.println(time.getDayOfYear());
        System.out.println(time.getHour());
        System.out.println(time.getMinute());
        System.out.println(time.getSecond());


    }
}
